import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'


  // 引入字体图标
  import '@/assets/font/iconfont.css'
//引入重置样式
import '@/assets/css/reset.scss'
//引入vant-Ui组件
import {Sticky,Dialog,SwipeCell,Card,Button,SubmitBar,Checkbox, CheckboxGroup ,Stepper,Sku,Popup ,Search,Toast,Swipe, SwipeItem, GoodsAction, GoodsActionIcon, GoodsActionButton,Slider,CountDown, Tab, Tabs,Rate  } from 'vant';
import 'vant/lib/index.css'
Vue.use(Search)
.use(Toast )
.use(Swipe)
.use(SwipeItem)
.use(GoodsAction)
.use(GoodsActionIcon)
.use(GoodsActionButton)
.use(Slider)
.use(CountDown)
.use(Tab)
.use(Tabs)
.use(Rate )
.use(Popup)
.use(Sku )
.use(Stepper)
.use(Checkbox)
.use(CheckboxGroup)
.use(SubmitBar )
.use(SwipeCell )
.use(Card )
.use(Button)
.use(Dialog)
.use(Sticky)


Vue.config.productionTip = false
Vue.directive('focus',{
  inserted:function(el){
    el.focus()
  }
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
